import request from "../index";
import type { ResultData } from "../index";
import { IProduct } from "./home";

export interface IDetailInfo {
  id?: number;
  name?: string;
  webPic?: string;
  mobilePic?: string;
  products?: IProduct[];
}

export const getDetailInfo = (id: string) => {
  return request.get<ResultData<IDetailInfo>>(
    "/special/getdetail?specialTopicId=" + id
  );
};
